package com.day22.Printable;

public class PrintableDemo {
    public static void main(String[] args){
        usePrintable((String s)->{
            System.out.println(s);
        });
        usePrintable((String s)->{
            System.out.println(s.toUpperCase());
        });
    }
    private static void usePrintable(Printable p){
        p.printString("hello");
    }
}
